﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TogheterWeBuyIt.Models.Usuario>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Editar
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>
        
        
            
            <% if (!string.IsNullOrEmpty(Model.CPF))
               { %>
                    <div class="editor-label">
                        <%= Html.LabelFor(model => model.CPF)%>
                    </div>
                    <div class="editor-field">
                        <%= Html.TextBoxFor(model => model.CPF)%>
                        <%= Html.ValidationMessageFor(model => model.CPF)%>
                    </div>
            <% } %>
            
            <% if (!string.IsNullOrEmpty(Model.CNPJ))
               { %>
                    <div class="editor-label">
                        <%= Html.LabelFor(model => model.CNPJ)%>
                    </div>
                    <div class="editor-field">
                        <%= Html.TextBoxFor(model => model.CNPJ)%>
                        <%= Html.ValidationMessageFor(model => model.CNPJ)%>
                    </div>
            <% } %>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Nome) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Nome) %>
                <%= Html.ValidationMessageFor(model => model.Nome) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Login) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Login) %>
                <%= Html.ValidationMessageFor(model => model.Login) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Senha) %>
            </div>
            <div class="editor-field">
                <%= Html.PasswordFor(model => model.Senha) %>
                <%= Html.ValidationMessageFor(model => model.Senha) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Email) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Email) %>
                <%= Html.ValidationMessageFor(model => model.Email) %>
            </div>
            
            <p>
                <input type="submit" value="Salvar" />
            </p>
        

    <% } %>

</asp:Content>

